package com.ls.blog.mapper;

import com.ls.blog.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lishun
 * @since 2022-01-14
 */
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 根据用户id查找角色列表
     * @param id
     * @return
     */
    List<String> getRoleByUserId(@Param("id") Integer id);
}
